/*
 * Copyright(C) 2013-2017 AnZhouInc.ALL Rights Reserved.
 *
 * FileName: JsonResult
 * 
 * Description: xxxxx
 *
 * History:
 * 版本号    作者    日期    操作
 * 1.0    ZhouFan 2018/2/12 0012   x
 * ...
 */
package com.fantazy.springswaggerdemo.model;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @author ZhouFan
 * @version 1.0
 * @date 2018/2/12 0012
 * @see
 */
@ApiModel
@JsonInclude(value = JsonInclude.Include.NON_NULL)
public class JsonResult<T> {

    @ApiModelProperty(value = "message", example = "successed")
    private String message;

    @ApiModelProperty(value = "object", example = "{}")
    private T data;

    @ApiModelProperty(value = "200", example = "200")
    private Integer status;


    public String getMessage() {
        return message;
    }

    public void setMessage( String message ) {
        this.message = message;
    }

    public T getData() {
        return data;
    }

    public void setData( T data ) {
        this.data = data;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus( Integer status ) {
        this.status = status;
    }
}
